package com.fuluwa.infra.repository;

import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;

@Entity
@NamedQuery(name = "DemoDao.fA", query = "select x  from DemoEntity x where x.name = ?1")
@Access(value = AccessType.FIELD)
public class DemoEntity {

	@Id
	@Column(unique=true,name="Cod_id")
	Long id;
	String name;

	public DemoEntity() {
		// TODO Auto-generated constructor stub
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
